﻿//===================================================================
// 西交通开发框架-XCI.Parent 2019 版权所有     
//===================================================================
using System;
using System.ComponentModel.DataAnnotations;
using XCI.Data.Entity;

namespace XCI.Sys.Model
{
    /// <summary>
    /// 系统字典类型
    /// </summary>
    [Table("系统字典类型")]
    public class SysDicCategory
    {
        /// <summary>
        /// 字典类型主键
        /// </summary>
        [Primary]
        [Column("字典类型主键", false)]
        public string Id { get; set; }

        /// <summary>
        /// 字典类型编码
        /// </summary>
        [Column("字典类型编码")]
        [Required(ErrorMessage = "请输入字典类型编码")]
        [StringLength(100, ErrorMessage = "字典类型编码不能超过100个字符")]
        public string Code { get; set; }

        /// <summary>
        /// 字典类型名称
        /// </summary>
        [Column("字典类型名称")]
        [Required(ErrorMessage = "请输入字典类型名称")]
        [StringLength(100, ErrorMessage = "字典类型名称不能超过100个字符")]
        public string Name { get; set; }

        /// <summary>
        /// 复制对象
        /// </summary>
        public SysDicCategory Clone()
        {
            return (SysDicCategory)MemberwiseClone();
        }
    }
}